// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// 统一一些基础样式
import './assets/styles/reset.css'

// 解决多倍屏里面1px边框被显示成多像素的问题
import './assets/styles/border.css'

// 点击事件延迟300毫秒,命令行npm install fastclick --save
import fastClick from 'fastclick'

// 图标库的使用
import './assets/styles/iconfont.css'

// 轮播图插件，在github下载，搜索vue-awesome-swiper,在终端npm install vue-awesome-swiper@2.6.7 --save
import VueAwesomeSwiper from 'vue-awesome-swiper'
// 轮播的样式
import 'swiper/dist/css/swiper.css'
// Vuex
import store from './store/index'

Vue.config.productionTip = false

// fastclick安装完成后使用
fastClick.attach(document.body)

// 使用轮播插件的方法
Vue.use(VueAwesomeSwiper)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
